package com.ljy.my_study.lintcode.单例;
/** 
* @author James
* @date 2018年9月28日 
*/
public class Solution {
	private static volatile Solution s=null;
	
	private Solution() {}
	
	public static Solution getInstance() {
		if(s==null) {
			synchronized(Solution.class) {
				if(s==null) {
					s=new Solution();
				}
			}
		}
		return s;
	}
}
